<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
    <title>毕业结算</title>
    <link href="${base}/resources/css/common.css" rel="stylesheet" type="text/css"/>
    <script type="text/javascript" src="${base}/resources/js/jquery.js"></script>
    <script type="text/javascript" src="${base}/resources/js/jquery.tools.js"></script>
    <script type="text/javascript" src="${base}/resources/js/jquery.lSelect.js"></script>
    <script type="text/javascript" src="${base}/resources/js/jquery.validate.js"></script>
    <script type="text/javascript" src="${base}/resources/js/common.js"></script>
    <script type="text/javascript" src="${base}/resources/js/input.js"></script>
    <script type="text/javascript" src="${base}/resources/datePicker/WdatePicker.js"></script>
    <script type="text/javascript">
        $().ready(function () {
            $inputForm = $("#inputForm")
            // 表单验证
            $inputForm.validate({
                rules: {
                    name: {
                        required: true,
                        minlength: 4,
                        maxlength: 16,
                    },
                    simpleName: {
                        required: true
                    },
                    code: {
                        required: true
                    }
                }
            });
        });


    </script>
</head>
<body>
<div class="path">
    <a href="${base}/common/index.jhtml">首页</a> &raquo; 毕业结算
</div>
<form id="inputForm" action="/settlement/list.do" method="post" enctype="multipart/form-data">
    <table id="listTable" class="list">
        <tr>
            <th class="check">
                <input type="checkbox" id="selectAll"/>
            </th>
            <th>
                <a href="javascript:;" class="sort" name="no">学号</a>
            </th>
            <th>
                <a href="javascript:;" class="sort" name="no">姓名</a>
            </th>
            <th>
                <a href="javascript:;" class="sort" name="no">专业</a>
            </th>
            <th>
                <a href="javascript:;" class="sort" name="no">专业总学分</a>
            </th>
            <th>
                <a href="javascript:;" class="sort" name="credit">实际总学分</a>
            </th>
            <th>
                <a href="javascript:;" class="sort" name="type">是否合格</a>
            </th>
        </tr>

    [#list settles as map]
        <tr>
            [#list map as settle ]
                <td>
                    <input type="checkbox" name="ids" value="${settle.id}"/>
                </td>
                <td>
                ${settle.stdNo}
                </td>
                <td>
                ${settle.name}
                </td>
                <td>
                ${settle.profession}
                </td>
                <td>
                ${settle.credit}
                </td>
                <td>
                ${settle.actualCredit}
                </td>
                <td>
                [#--<a href="edit.html?id=${settle.id}">[编辑]</a>--]
                    [#if settle.credit < settle.actualCredit]
                        合格
                    [#else ]
                        不合格
                    [/#if]
                </td>
            [/#list]
        </tr>
    [/#list]
    </table>


</form>
</body>
</html>